package com.hzspace.commandlinerunner;

import org.springframework.boot.CommandLineRunner;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

import java.util.Arrays;

/**
 * @Author: LiuHao
 * @Descirption:
 * @Date: 2020/3/1_13:56
 */
@Component
//Order value值越大优先级越低
@Order(value = 60)
public class MyCommandLineRunner2 implements CommandLineRunner {
    @Override
    public void run(String... args) throws Exception {
        System.out.println("MyCommandLineRunner2 args===>" + Arrays.toString(args));
    }
}
